package com.rlyy.basic.process;

import com.rlyy.common.param.Request;
import com.rlyy.common.response.Result;

/**
 * 同步异步处理
 *
 * @author yuanqinglong
 * @since 2021/9/14 11:28
 */
public interface ISyncAsyncProcessor {

    /**
     * 异步
     *
     * @return boolean
     */
    boolean asyncProcess();

    /**
     * 处理程序
     *
     * @param request 请求参数
     * @return {@link Result}
     * @throws Exception 异常
     */
    Result doProcess(Request request) throws Exception;


}
